<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1, user-scalable=no" />
    <title>忘记密码</title>
    <link rel="stylesheet" href="css/index.css">
    <script src="js/rem_main.js"></script>
    <script src="js/fontnormal.js"></script>
</head>
<body>
<div class="wrapper">
    <div class="contant-main forget-code">
        <ul class="register-ul">
            <li>
                <p>手机号码</p>：
                <p class="inp"><input type="text" name="telephone" class="telephone" value=""></p>
            </li>
            <li>
                <p>图像验证</p>：
                <p class="inp"><input type="text" name="imgcode" class="imgcode" value=""></p>
                <p class="imgyzm">
                    <a href="javascript:;"><img class="captcha" src="/home/captcha" alt=""></a>
                </p>
            </li>
            <li>
                <p>验<em>证</em>码</p>：
                <p class="inp"><input type="text" name="yzcode" class="yzcode" value=""></p>
                <p class="yzm">
                    <button class="yzmBtn">验证码</button>
                </p>
            </li>
            <li>
                <p>新<em>密</em>码</p>：
                <p class="inp"><input type="text" name="password" class="password" value=""></p>
            </li>
            <li>
                <p>确认密码</p>：
                <p class="inp"><input type="text" name="newcode" class="newcode" value=""></p>
            </li>
            <li>
                <button class="register-btn sub_btn">提交信息</button>
            </li>
        </ul>
    </div>
</div>
<script src="js/jquery-1.9.1.min.js"></script>
<script src="layer/layer.js"></script>
<script>
    var token = "{{csrf_token()}}";
    $(function(){

        $(".captcha").on("click",function(){
            var url = $(this).attr("src");
            var randNum = Math.random();
            url = url.split("?");
            url = url[0]+"?"+randNum;
            $(this).attr("src",url);
        });
    });
</script>
<script src="js/forget-code.js"></script>
</body>
</html>